/*
 * @Description: 基础服务
 * @Author: seadon
 * @LastEditors: seadon
 * @Date: 2021-07-08 22:41:45
 * @LastEditTime: 2021-07-09 11:35:47
 */
import { FetchService } from '@/utils'
export default class {
	public http: FetchService
	public constructor(http: FetchService) {
		this.http = http
	}
	/**
	 * 获取租户信息
	 * @method
	 */
	public async GetSpTenantGetTenantDetail(data: any) {
		const result = await this.http.post(`/public/tenant/getTenantDetail`, data)
		return result
	}
	// 查询全部组织形态
	public async GetBizorgPatternList(parm: any) {
		const result = await this.http.post(`/v1/private/bizorgPattern/list`, parm)
		return result
	}
	// 切换和设为默认
	public async SwitchDeptEmployeePrivateV1POST(parm: any) {
		const result = await this.http.post('/v1/private/employee/switchDept', parm)
		return result
	}
	// 获取组织列表
	public async getOrgList(parm: any) {
		const result = await this.http.post(
			'/v1/private/dept/mul/internal/pageAbleOrg',
			parm
		)
		return result
	}
	//  用户定制化查询接口
	public async personalizeConfig() {
		const result = await this.http.post('/v1/private/personalize/config')
		return result
	}
	//  用户定制化查询接口
	public async personalizeSaveByKey(parm: any) {
		const result = await this.http.post(
			'/v1/private/personalize/saveByKey',
			parm
		)
		return result
	}
}
